#pragma once
#ifndef _RAY_H_
#define _RAY_H_
#include "vec3.h"
class ray
{
public:
	ray() {}
	ray(const vec3& a, const vec3& b):A(a),B(b) {}
	vec3 origin() const { return A; }
	vec3 direction() const { return B; }
	vec3 point_at_parameter(float t) const { return A + t*B; }
private:
	vec3 A;
	vec3 B;
};
#endif // !_RAY_H_

